<template>
  <div>
    <!-- 腥红之月 -->
    <div class="xinghong">
      <div class="zhiyue" v-for="(v, i) in arr1" :key="i">
        <div class="zuo">
          <div class="picture">
            <img :src="v.img" alt="" />
          </div>
          <div class="xinghong1">
            <p class="seven">{{ v.text }}</p>
            <p class="dou">{{ v.text1 }}</p>
          </div>
        </div>
        <div class="you">
          <div class="dui">兑换</div>
        </div>
      </div>
    </div>
    <!-- 轮播图 -->
    <div class="lunbo">
      <van-swipe class="my-swipe" :autoplay="3000" indicator-color="white">
        <van-swipe-item><img src="39.jpg" alt="" /></van-swipe-item>
        <van-swipe-item><img src="46.jpg" alt="" /></van-swipe-item>
      </van-swipe>
    </div>
    <!-- 赚聚豆 -->
    <div id="xinyou">
      <span class="yuyue">赚聚豆</span>
      <span class="iconfont icon-youjiantou-tianchong">更多任务</span>
    </div>

  </div>
</template>

<script>
import getapi from "@/apis/getapi.js";
export default {
  mounted() {
    getapi("/xiaojiang").then((ok) => {
      this.arr1 = ok.data.data9;

      //   console.log(ok);
    });
  },
  data() {
    return {
      arr1: [],
    };
  },
};
</script>

<style scoped>
/* 猩红 */
.xinghong {
  width: 100%;
  height: 2.1rem;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  /* background-color: aqua; */
  margin-top: 0.15rem;
}
.zhiyue {
  width: 100%;
  height: 0.7rem;
  /* background-color: bisque; */
  display: flex;
  justify-content: space-between;
}
.zuo {
  width: 55%;
  height: 0.7rem;
  /* background-color: blueviolet; */
  display: flex;
  justify-content: space-between;
}
.picture {
  width: 45%;
  height: 00.7rem;
  /* background-color: bisque; */
}
.picture img {
  width: 100%;
  height: 100%;
}
.xinghong1 {
  width: 55%;
  height: 00.7rem;
  /* background-color: rgb(177, 54, 177); */
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}
.seven {
  /* background-color: blue; */
  height: 0.5rem;
  width: 100%;
  font-size: 0.12rem;
  line-height: 00.5rem;
  text-align: center;
}
.dou {
  /* background-color: brown; */
  height: 0.2rem;
  width: 100%;
  text-align: center;
  line-height: 00.2rem;
}
.you {
  width: 25%;
  height: 0.7rem;
  /* background-color: cadetblue; */
  position: relative;
}
.dui {
  width: 100%;
  height: 0.3rem;
  line-height: 0.7rem;
  background-color: #fed140;
  border-radius: 0.3rem;
  position: absolute;
  margin-top: 21%;
  justify-content: center;
  align-items: center;
  display: flex;
  font-size: 0.16rem;
}
/* 轮播图 */
.lunbo {
  width: 100%;
  height: 1rem;
  margin-top: 00.2rem;
  /* background-color: aqua; */
}
.my-swipe .van-swipe-item {
  color: #fff;
  line-height: 1rem;
}
.my-swipe .van-swipe-item img {
  width: 100%;
  height: 100;
}
/* 赚聚豆 */
#xinyou {
  width: 100%;
  height: 0.2rem;
  margin-top: 0.1rem;
  margin-bottom: 0.1rem;
  display: flex;
  justify-content: space-between;
  /* background-color: blue; */
}
.yuyue {
  font-size: 0.16rem;
  font-weight: 600;
  line-height: 0.2rem;
}
#xinyou span {
  line-height: 0.2rem;
  font-size: 0.16rem;
}
</style>